import request from '@/utils/request'
// 查询部门列表
export function getDeptsList() {
  return request({
    url: `/company/department`
  })
}
// 根据id查询部门详情
export function getDeptsDetail(id) {
  return request({
    url: `/company/department/${id}`
  })
}
// 根据id 修改部门详情
export function editDepts(data) {
  return request({
    method: 'put',
    url: `/company/department/${data.id}`,
    data
  })
}

